import Main from '@/components/main'
import parentView from '@/components/parent-view'

/**
 * iview-admin中meta除了原生参数外可配置的参数:
 * meta: {
 *  title: { String|Number|Function }
 *         显示在侧边栏、面包屑和标签栏的文字
 *         使用'{{ 多语言字段 }}'形式结合多语言使用，例子看多语言的路由配置;
 *         可以传入一个回调函数，参数是当前路由对象，例子看动态路由和带参路由
 *  hideInBread: (false) 设为true后此级路由将不会出现在面包屑中，示例看QQ群路由配置
 *  hideInMenu: (false) 设为true后在左侧菜单不会显示该页面选项
 *  notCache: (false) 设为true后页面在切换标签后不会缓存，如果需要缓存，无需设置这个字段，而且需要设置页面组件name属性和路由配置的name一致
 *  access: (null) 可访问该页面的权限数组，当前路由设置的权限会影响子路由
 *  icon: (-) 该页面在左侧菜单、面包屑和标签导航处显示的图标，如果是自定义图标，需要在图标名称前加下划线'_'
 *  beforeCloseName: (-) 设置该字段，则在关闭当前tab页时会去'@/router/before-close.js'里寻找该字段名对应的方法，作为关闭前的钩子函数
 * }
 */

export default [
  {
    path: '/login',
    name: 'login',
    meta: {
      title: 'Login - 登录',
      hideInMenu: true
    },
    component: resolve => require(['@/view/login/login.vue'], resolve)
  },
  {
    path: '/',
    name: '_home',
    redirect: '/home',
    component: Main,
    meta: {
      hideInMenu: true,
      notCache: true
    },
    children: [
      {
        path: '/home',
        name: 'home',
        meta: {
          hideInMenu: true,
          title: '首页',
          notCache: true,
          icon: 'md-home',
        },
        component: resolve => require(['@/view/single-page/home'], resolve)
      }
    ]
  },
  {
    path: '/workmanager',
    name: 'workmanager',
    meta: {
      icon: 'md-reorder',
      title: '综合管理',
      access: ["user"]
    },
    component: Main,
    children: [
      {
        path: '/accountmanager',
        name: 'accountmanager',
        meta: {
          icon: 'ios-people',
          title: '账号管理',
          access: ["admin"]
        },
        component: parentView,
        children: [
          {
            path: '/area_manager',
            name: 'area_manager',
            meta: {
              icon: 'md-map',
              title: '行政区划',
              access: ["admin"]
            },
            component: resolve => require(['@/view/system/area_manager.vue'], resolve)
          },
          {
            path: '/area_employee_manager',
            name: 'area_employee_manager',
            meta: {
              icon: 'ios-people',
              title: '部门账号',
              access: ["admin"]
            },
            component: resolve => require(['@/view/employee/area_employee_manager.vue'], resolve)
          },
          {
            path: '/employee_manager',
            name: 'employee_manager',
            meta: {
              icon: 'ios-people',
              title: '人员账号',
              access: ["admin"]
            },
            component: resolve => require(['@/view/employee/employee_manager.vue'], resolve)
          },
          {
            path: '/signimg',
            name: 'signimg',
            meta: {
              icon: 'md-image',
              title: '签名图片',
              access: ["admin"]
            },
            component: resolve => require(['@/view/employee/signimg.vue'], resolve)
          },
          {
            path: '/company_sign',
            name: 'company_sign',
            meta: {
              icon: 'md-map',
              title: '评估公司',
              access: ["admin"]
            },
            component: resolve => require(['@/view/system/company_sign.vue'], resolve)
          },
        ]
      },
      {
        path: '/contacts',
        name: 'contacts',
        meta: {
          icon: 'md-call',
          title: '电话查询',
          access: ["user"]
        },
        component: resolve => require(['@/view/work/contacts.vue'], resolve)
      },
      {
        path: '/updatepwd_page',
        name: 'updatepwd_page',
        meta: {
          icon: 'ios-unlock',
          title: '修改密码'
        },
        component: resolve => require(['@/view/updatepwd.vue'], resolve)
      },
      {
        path: '/action-log_page',
        name: 'action-log_page',
        meta: {
          icon: 'md-build',
          title: '导出日志',
          access: ["admin"]
        },
        component: resolve => require(['@/view/single-page/action-log.vue'], resolve)
      },
      {
        path: '/login-log_page',
        name: 'login-log_page',
        meta: {
          icon: 'md-build',
          title: '登录日志',
          access: ["admin"]
        },
        component: resolve => require(['@/view/single-page/login-log.vue'], resolve)
      },
      {
        path: '/operate-log',
        name: 'operate-log',
        meta: {
          icon: 'md-build',
          title: '操作日志',
          access: ["admin"]
        },
        component: resolve => require(['@/view/single-page/operate-log.vue'], resolve)
      }
    ]
  },
  {
    path: '/assessperson',
    name: 'assessperson',
    meta: {
      icon: 'ios-man',
      title: '能力评估',
      access: ["admin"]
    },
    component: Main,
    children: [
      {
        path: 'import_person',
        name: 'import_person',
        meta: {
          icon: 'md-add',
          title: '新建项目',
          access: ["admin"]
        },
        component: resolve => require(['@/view/assessperson/import_person.vue'], resolve)
      },
      {
        path: '/assessing',
        name: 'assessing',
        meta: {
          icon: 'md-reorder',
          title: '项目实施',
          access: ["admin"]
        },
        component: parentView,
        children: [
          {
            path: '/search_person_new',
            name: 'search_person_new',
            meta: {
              icon: 'ios-stats',
              title: '新增人员汇总',
              access: ["admin"]
            },
            component: resolve => require(['@/view/assessperson/search_person_new.vue'], resolve)

          },
          {
            path: '/search_person_group',
            name: 'search_person_group',
            meta: {
              icon: 'ios-stats',
              title: '评估阶段汇总',
              access: ["admin"]
            },
            props: true,
            component: resolve => require(['@/view/assessperson/search_person_group.vue'], resolve)

          },
          {
            path: '/search_person/:id',
            name: 'search_person',
            meta: {
              hideInMenu: true,
              hideInBread: true,
              icon: 'ios-stats',
              title: '评估阶段汇总详情',
              access: ["admin"]
            },
            props: true,
            component: resolve => require(['@/view/assessperson/search_person.vue'], resolve)

          },
          // {
          //   path: '/search_person_group2',
          //   name: 'search_person_group2',
          //   meta: {
          //     icon: 'ios-stats',
          //     title: '评估结果汇总',
          //     access: ["admin"]
          //   },
          //   props: true,
          //   component: resolve => require(['@/view/assessperson/search_person_group.vue'], resolve)

          // },
        ]
      },
      {
        path: 'search_person_all',
        name: 'search_person_all',
        meta: {
          icon: 'md-search',
          title: '评估高级查询',
          access: ["admin"]
        },
        component: resolve => require(['@/view/assessperson/search_person_all.vue'], resolve)
      },
      {
        path: '/search_person_saved',
        name: 'search_person_saved',
        meta: {
          icon: 'ios-stats',
          title: '结果查询',
          access: ["admin"]
        },
        component: resolve => require(['@/view/assessperson/search_person_saved.vue'], resolve)
      },

      {
        path: 'import_person_record',
        name: 'import_person_record',
        meta: {
          icon: 'ios-copy',
          title: '信息比对',
          access: ["admin"]
        },
        component: resolve => require(['@/view/assessperson/import_person_record.vue'], resolve)
      },
      {
        path: '/search_assessperson/:id',
        name: 'search_assessperson',
        meta: {
          hideInMenu: true,
          hideInBread: true,
          icon: 'ios-stats',
          title: '评估结果汇总详情',
          access: ["admin"]
        },
        props: true,
        component: resolve => require(['@/view/assessperson/search_assessperson.vue'], resolve)

      },
      {
        path: '/search_savedperson/:id',
        name: 'search_savedperson',
        meta: {
          hideInMenu: true,
          hideInBread: true,
          icon: 'ios-stats',
          title: '评估报告详情',
          access: ["admin", "areaadmin"]
        },
        props: true,
        component: resolve => require(['@/view/assessperson/search_savedperson.vue'], resolve)

      },
      {
        path: '/search_area_savedperson/:id',
        name: 'search_area_savedperson',
        meta: {
          hideInMenu: true,
          hideInBread: true,
          icon: 'ios-stats',
          title: '地区评估报告详情',
          access: ["admin", "areaadmin"]
        },
        props: true,
        component: resolve => require(['@/view/assessperson/search_area_savedperson.vue'], resolve)

      }
    ]
  },
  {
    path: '/assess_info_manager',
    name: 'assess_info_manager',
    meta: {
      hideInMenu: true,
      hideInBread: true,
      access: ["admin"]
    },
    component: Main,
    children: [
      {
        path: '/assess_info/:id',
        name: 'assess_info',
        component: Main,
        meta: {
          icon: 'ios-stats',
          title: '简易评估报告',
          hideInMenu: true,
          hideInBread: true,
          access: ["admin", "areaadmin"]
        },
        props: true,
        component: resolve => require(['@/view/assessperson/assess_info.vue'], resolve)

      }, {
        path: '/standard_assess_info/:id',
        name: 'standard_assess_info',
        component: Main,
        meta: {
          icon: 'ios-stats',
          title: '标准评估报告',
          hideInMenu: true,
          hideInBread: true,
          access: ["admin", "areaadmin"]
        },
        props: true,
        component: resolve => require(['@/view/assessperson/standard_assess_info.vue'], resolve)
      },
      {
        path: '/assess_new_info/:id',
        name: 'assess_new_info',
        component: Main,
        meta: {
          icon: 'ios-stats',
          title: '标准评估报告',
          hideInMenu: true,
          hideInBread: true,
          access: ["admin", "areaadmin"]
        },
        props: true,
        component: resolve => require(['@/view/assessperson/assess_new_info.vue'], resolve)
      },
      {
        path: '/tekun_assess_info/:id',
        name: 'tekun_assess_info',
        component: Main,
        meta: {
          icon: 'ios-stats',
          title: '特困评估报告',
          hideInMenu: true,
          hideInBread: true,
          access: ["admin", "areaadmin"]
        },
        props: true,
        component: resolve => require(['@/view/assessperson/tekun_assess_info.vue'], resolve)

      },
      {
        path: '/tekun_new_assess_info/:id',
        name: 'tekun_new_assess_info',
        component: Main,
        meta: {
          icon: 'ios-stats',
          title: '特困评估报告',
          hideInMenu: true,
          hideInBread: true,
          access: ["admin", "areaadmin"]
        },
        props: true,
        component: resolve => require(['@/view/assessperson/tekun_new_assess_info.vue'], resolve)

      }

    ]
  },
  {
    path: '/dbgroup',
    name: 'dbgroup',
    meta: {
      icon: 'md-contacts',
      title: '低保核查',
      showAlways: true,
      access: ["admin"]
    },
    component: Main,
    children: [
      {
        path: '/commodity',
        name: 'commodity',
        meta: {
          icon: 'md-cube',
          title: '农产品价格管理',
          access: ["admin"]
        },
        component: resolve => require(['@/view/system/commodity.vue'], resolve)
      },

      {
        path: 'import_dbperson',
        name: 'import_dbperson',
        meta: {
          icon: 'md-add',
          title: '新建项目',
          access: ["admin"]
        },
        component: resolve => require(['@/view/db/import_dbperson.vue'], resolve)
      },
      {
        path: '/dbing',
        name: 'dbing',
        meta: {
          icon: 'md-reorder',
          title: '实施项目',
          access: ["admin"]
        },
        component: parentView,
        children: [
          {
            path: '/db_search_person_new',
            name: 'db_search_person_new',
            meta: {
              icon: 'ios-stats',
              title: '新增人员汇总',
              access: ["admin"]
            },
            component: resolve => require(['@/view/db/db_search_person_new.vue'], resolve)

          },
          {
            path: '/db_search_group',
            name: 'db_search_group',
            meta: {
              icon: 'ios-stats',
              title: '核查阶段汇总',
              access: ["admin"]
            },
            props: true,
            component: resolve => require(['@/view/db/db_search_group.vue'], resolve)

          },
          {
            path: '/db_search_person/:id',
            name: 'db_search_person',
            meta: {
              hideInMenu: true,
              hideInBread: true,
              icon: 'ios-stats',
              title: '核查阶段汇总详情',
              access: ["admin"]
            },
            props: true,
            component: resolve => require(['@/view/db/db_search_person.vue'], resolve)

          },
          // {
          //   path: '/search_person_group2',
          //   name: 'search_person_group2',
          //   meta: {
          //     icon: 'ios-stats',
          //     title: '评估结果汇总',
          //     access: ["admin"]
          //   },
          //   props: true,
          //   component: resolve => require(['@/view/assessperson/search_person_group.vue'], resolve)

          // },
        ]
      },
      {
        path: 'db_search_person_all',
        name: 'db_search_person_all',
        meta: {
          icon: 'md-search',
          title: '低保高级查询',
          access: ["admin"]
        },
        component: resolve => require(['@/view/db/db_search_person_all.vue'], resolve)
      },
      {
        path: '/db_search_person_saved',
        name: 'db_search_person_saved',
        meta: {
          icon: 'ios-stats',
          title: '核查报告',
          access: ["admin"]
        },
        component: resolve => require(['@/view/db/db_search_person_saved.vue'], resolve)
      },
      {
        path: '/db_search_savedperson/:id',
        name: 'db_search_savedperson',
        meta: {
          hideInMenu: true,
          hideInBread: true,
          icon: 'ios-stats',
          title: '核查报告详情',
          access: ["admin", "areaadmin"]
        },
        props: true,
        component: resolve => require(['@/view/db/db_search_savedperson.vue'], resolve)
      },
      {
        path: '/db_info/:id/:name',
        name: 'db_info',
        component: Main,
        meta: {
          icon: 'ios-stats',
          title: route => `核查报告-${route.params.name}`,
          hideInMenu: true,
          hideInBread: true,
          access: ["admin", "areaadmin"]
        },
        props: true,
        component: resolve => require(['@/view/db/db_info.vue'], resolve)
      },

    ]
  },
  {
    path: '/jzgroup',
    name: 'jzgroup',
    meta: {
      icon: 'md-contacts',
      title: '救助核查',
      showAlways: true,
      access: ["admin"]
    },
    component: Main,
    children: [


      {
        path: 'import_jzperson',
        name: 'import_jzperson',
        meta: {
          icon: 'md-add',
          title: '新建项目',
          access: ["admin"]
        },
        component: resolve => require(['@/view/jz/import_jzperson.vue'], resolve)
      },
      {
        path: '/jzing',
        name: 'jzing',
        meta: {
          icon: 'md-reorder',
          title: '实施项目',
          access: ["admin"]
        },
        component: parentView,
        children: [
          {
            path: '/jz_search_person_new',
            name: 'jz_search_person_new',
            meta: {
              icon: 'ios-stats',
              title: '新增人员汇总',
              access: ["admin"]
            },
            component: resolve => require(['@/view/jz/jz_search_person_new.vue'], resolve)

          },
          {
            path: '/jz_search_group',
            name: 'jz_search_group',
            meta: {
              icon: 'ios-stats',
              title: '核查阶段汇总',
              access: ["admin"]
            },
            props: true,
            component: resolve => require(['@/view/jz/jz_search_group.vue'], resolve)

          },
          {
            path: '/jz_search_person/:id',
            name: 'jz_search_person',
            meta: {
              hideInMenu: true,
              hideInBread: true,
              icon: 'ios-stats',
              title: '核查阶段汇总详情',
              access: ["admin"]
            },
            props: true,
            component: resolve => require(['@/view/jz/jz_search_person.vue'], resolve)

          },
          // {
          //   path: '/search_person_group2',
          //   name: 'search_person_group2',
          //   meta: {
          //     icon: 'ios-stats',
          //     title: '评估结果汇总',
          //     access: ["admin"]
          //   },
          //   props: true,
          //   component: resolve => require(['@/view/assessperson/search_person_group.vue'], resolve)

          // },
        ]
      },
      {
        path: 'jz_search_person_all',
        name: 'jz_search_person_all',
        meta: {
          icon: 'md-search',
          title: '救助高级查询',
          access: ["admin"]
        },
        component: resolve => require(['@/view/jz/jz_search_person_all.vue'], resolve)
      },
      {
        path: '/jz_search_person_saved',
        name: 'jz_search_person_saved',
        meta: {
          icon: 'ios-stats',
          title: '核查报告',
          access: ["admin"]
        },
        component: resolve => require(['@/view/jz/jz_search_person_saved.vue'], resolve)
      },
      {
        path: '/jz_search_savedperson/:id',
        name: 'jz_search_savedperson',
        meta: {
          hideInMenu: true,
          hideInBread: true,
          icon: 'ios-stats',
          title: '核查报告详情',
          access: ["admin", "areaadmin"]
        },
        props: true,
        component: resolve => require(['@/view/jz/jz_search_savedperson.vue'], resolve)
      },
      {
        path: '/jz_info/:id/:name',
        name: 'jz_info',
        component: Main,
        meta: {
          icon: 'ios-stats',
          title: route => `特困救助核查报告-${route.params.name}`,
          hideInMenu: true,
          hideInBread: true,
          access: ["admin", "areaadmin"]
        },
        props: true,
        component: resolve => require(['@/view/jz/jz_info.vue'], resolve)
      },
      {
        path: '/temp_jz_info/:id/:name',
        name: 'temp_jz_info',
        component: Main,
        meta: {
          icon: 'ios-stats',
          title: route => `临时救助核查报告-${route.params.name}`,
          hideInMenu: true,
          hideInBread: true,
          access: ["admin", "areaadmin"]
        },
        props: true,
        component: resolve => require(['@/view/jz/temp_jz_info.vue'], resolve)
      },
    ]
  },

  {
    path: '/levelassess',
    name: 'levelassess',
    meta: {
      icon: 'ios-funnel',
      title: '等级评定',
      showAlways: true,
      access: ["admin"]
    },
    component: Main,
    children: [
      {
        path: '/orgassess',
        name: 'orgassess',
        meta: {
          icon: 'ios-funnel',
          title: '养老机构评定',
          showAlways: true,
          access: ["admin"]
        },
        component: parentView,
        children: [
          {
            path: '/orgassesstype',
            name: 'orgassesstype',
            meta: {
              icon: 'md-cube',
              title: '评定项管理',
              access: ["superadmin"]
            },
            component: resolve => require(['@/view/org/orgassesstype.vue'], resolve)
          },
          {
            path: '/orgassessbedtype',
            name: 'orgassessbedtype',
            meta: {
              icon: 'md-cube',
              title: '床位评定项管理',
              access: ["superadmin"]
            },
            component: resolve => require(['@/view/org/orgassessbedtype.vue'], resolve)
          }, {
            path: '/orgassessservicetype',
            name: 'orgassessservicetype',
            meta: {
              icon: 'md-cube',
              title: '服务检查项管理',
              access: ["superadmin"]
            },
            component: resolve => require(['@/view/org/orgassessservicetype.vue'], resolve)
          },
          {
            path: '/orgassessservicebasictype',
            name: 'orgassessservicebasictype',
            meta: {
              icon: 'md-cube',
              title: '质量规范项管理',
              access: ["superadmin"]
            },
            component: resolve => require(['@/view/org/orgassessservicebasictype.vue'], resolve)
          },
          {
            path: '/orgassesssafetype',
            name: 'orgassesssafetype',
            meta: {
              icon: 'md-cube',
              title: '安全规范项管理',
              access: ["superadmin"]
            },
            component: resolve => require(['@/view/org/orgassesssafetype.vue'], resolve)
          },
          {
            path: 'import_org',
            name: 'import_org',
            meta: {
              icon: 'md-add',
              title: '新建项目',
              access: ["admin"]
            },
            component: resolve => require(['@/view/org/import_org.vue'], resolve)
          },
          {
            path: '/org_search_group',
            name: 'org_search_group',
            meta: {
              icon: 'ios-stats',
              title: '评定阶段汇总',
              access: ["admin"]
            },
            props: true,
            component: resolve => require(['@/view/org/org_search_group.vue'], resolve)

          },
          {
            path: '/search_org/:id/:issaved',
            name: 'search_org',
            meta: {
              hideInMenu: true,
              hideInBread: true,
              icon: 'ios-stats',
              title: route => `${(route.params.issaved == 0 ? '养老机构评定阶段汇总' : '养老机构评定报告') + '-' + route.query.groupname}`,
              access: ["admin"]
            },
            props: true,
            component: resolve => require(['@/view/org/search_org.vue'], resolve)
          },
          {
            path: '/search_org_info/:id/:name',
            name: 'search_org_info',
            component: Main,
            meta: {
              icon: 'ios-stats',
              title: route => `机构评定报告-${route.params.name}`,
              hideInMenu: true,
              hideInBread: true,
              access: ["admin"]
            },
            props: true,
            component: resolve => require(['@/view/org/search_org_info.vue'], resolve)
          },
          {
            path: '/org_search_group_saved',
            name: 'org_search_group_saved',
            meta: {
              icon: 'ios-stats',
              title: '评定报告',
              access: ["admin"]
            },
            props: true,
            component: resolve => require(['@/view/org/org_search_group_saved.vue'], resolve)
          },
          // {
          //   path: '/orgassessslef',
          //   name: 'orgassessslef',
          //   meta: {
          //     icon: 'ios-list-box',
          //     title: '机构自评',
          //     access: ["admin"]
          //   },
          //   component: resolve => require(['@/view/nodata.vue'], resolve)
          // },


        ]
      },
      {
        path: '/xfyassess',
        name: 'xfyassess',
        meta: {
          icon: 'ios-funnel',
          title: '幸福院评定',
          showAlways: true,
          access: ["admin"]
        },
        component: parentView,
        children: [
          {
            path: '/xfyassesstype',
            name: 'xfyassesstype',
            meta: {
              icon: 'md-cube',
              title: '评定项管理',
              access: ["superadmin"]
            },
            component: resolve => require(['@/view/xfy/xfyassesstype.vue'], resolve)
          },
          {
            path: 'import_xfy',
            name: 'import_xfy',
            meta: {
              icon: 'md-add',
              title: '新建项目',
              access: ["admin"]
            },
            component: resolve => require(['@/view/xfy/import_xfy.vue'], resolve)
          },
          {
            path: '/xfy_search_group',
            name: 'xfy_search_group',
            meta: {
              icon: 'ios-stats',
              title: '评定阶段汇总',
              access: ["admin"]
            },
            props: true,
            component: resolve => require(['@/view/xfy/xfy_search_group.vue'], resolve)

          },
          {
            path: '/search_xfy/:id/:issaved',
            name: 'search_xfy',
            meta: {
              hideInMenu: true,
              hideInBread: true,
              icon: 'ios-stats',
              title: route => `${(route.params.issaved == 0 ? '农村幸福院评定阶段汇总' : '农村幸福院评定报告') + '-' + route.query.groupname}`,
              access: ["admin"]
            },
            props: true,
            component: resolve => require(['@/view/xfy/search_xfy.vue'], resolve)
          },
          {
            path: '/search_xfy_info/:id/:name',
            name: 'search_xfy_info',
            component: Main,
            meta: {
              icon: 'ios-stats',
              title: route => `幸福院评定报告-${route.params.name}`,
              hideInMenu: true,
              hideInBread: true,
              access: ["admin"]
            },
            props: true,
            component: resolve => require(['@/view/xfy/search_xfy_info.vue'], resolve)
          },
          {
            path: '/xfy_search_group_saved',
            name: 'xfy_search_group_saved',
            meta: {
              icon: 'ios-stats',
              title: '评定报告',
              access: ["admin"]
            },
            props: true,
            component: resolve => require(['@/view/xfy/xfy_search_group_saved.vue'], resolve)
          },
        ]
      },
      {
        path: '/rijianassess',
        name: 'rijianassess',
        meta: {
          icon: 'ios-funnel',
          title: '日间照料中心评定',
          showAlways: true,
          access: ["admin"]
        },
        component: parentView,
        children: [
          {
            path: '/rijianassesstype',
            name: 'rijianassesstype',
            meta: {
              icon: 'md-cube',
              title: '评定项管理',
              access: ["superadmin"]
            },
            component: resolve => require(['@/view/rijian/rijianassesstype.vue'], resolve)
          },
          {
            path: 'import_rijian',
            name: 'import_rijian',
            meta: {
              icon: 'md-add',
              title: '新建项目',
              access: ["admin"]
            },
            component: resolve => require(['@/view/rijian/import_rijian.vue'], resolve)
          },
          {
            path: '/rijian_search_group',
            name: 'rijian_search_group',
            meta: {
              icon: 'ios-stats',
              title: '评定阶段汇总',
              access: ["admin"]
            },
            props: true,
            component: resolve => require(['@/view/rijian/rijian_search_group.vue'], resolve)

          },
          {
            path: '/search_rijian/:id/:issaved',
            name: 'search_rijian',
            meta: {
              hideInMenu: true,
              hideInBread: true,
              icon: 'ios-stats',
              title: route => `${(route.params.issaved == 0 ? '日间照料中心评定阶段汇总' : '日间照料中心评定报告') + '-' + route.query.groupname}`,
              access: ["admin"]
            },
            props: true,
            component: resolve => require(['@/view/rijian/search_rijian.vue'], resolve)
          },
          {
            path: '/search_rijian_info/:id/:name',
            name: 'search_rijian_info',
            component: Main,
            meta: {
              icon: 'ios-stats',
              title: route => `日间照料中心评定报告-${route.params.name}`,
              hideInMenu: true,
              hideInBread: true,
              access: ["admin"]
            },
            props: true,
            component: resolve => require(['@/view/rijian/search_rijian_info.vue'], resolve)
          },

          {
            path: '/rijian_search_group_saved',
            name: 'rijian_search_group_saved',
            meta: {
              icon: 'ios-stats',
              title: '评定报告',
              access: ["admin"]
            },
            props: true,
            component: resolve => require(['@/view/rijian/rijian_search_group_saved.vue'], resolve)
          },

        ]
      },
    ]
  },

  {
    path: '/projectcheck',
    name: 'projectcheck',
    meta: {
      icon: 'md-briefcase',
      title: '项目评审',
      showAlways: true,
      access: ["admin"]
    },
    component: Main,
    children: [
      {
        path: '/projectadd',
        name: 'projectadd',
        meta: {
          icon: 'md-add',
          title: '新建项目',
          access: ["admin"]
        },
        component: resolve => require(['@/view/nodata.vue'], resolve)
      },
      {
        path: '/fileupload',
        name: 'fileupload',
        meta: {
          icon: 'md-cloud-upload',
          title: '材料上传',
          access: ["admin"]
        },
        component: resolve => require(['@/view/nodata.vue'], resolve)
      },

    ]
  },
  {
    path: '/report',
    name: 'report',
    meta: {
      icon: 'ios-podium',
      title: '报告制作',
      access: ["admin"]
    },
    component: Main,
    children: [
      {
        path: '/projectreport',
        name: 'projectreport',
        meta: {
          icon: 'ios-podium',
          title: '报告制作',
          access: ["admin"]
        },
        component: resolve => require(['@/view/work/projectreport.vue'], resolve)
      },
      // {
      //   path: '/reportcheck',
      //   name: 'reportcheck',
      //   meta: {
      //     icon: 'md-checkbox',
      //     title: '报告审核',
      //     access: ["admin"]
      //   },
      //   component: resolve => require(['@/view/nodata.vue'], resolve)
      // },
      // {
      //   path: '/savedreport',
      //   name: 'savedreport',
      //   meta: {
      //     icon: 'md-bookmark',
      //     title: '报告存档',
      //     access: ["admin"]
      //   },
      //   component: resolve => require(['@/view/nodata.vue'], resolve)
      // },
    ]
  },
  {
    path: '/statistics',
    name: 'statistics',
    meta: {
      icon: 'md-grid',
      title: '统计报表',
      showAlways: true,
      access: ["admin"]
    },
    component: Main,
    children: [
      {
        path: '/workreport',
        name: 'workreport',
        meta: {
          icon: 'ios-paper',
          title: '工作汇总',
          access: ["admin"]
        },
        component: resolve => require(['@/view/nodata.vue'], resolve)
      },
      {
        path: '/employee_work',
        name: 'employee_work',
        meta: {
          icon: 'ios-pie',
          title: '绩效核算',
          access: ["admin"]
        },
        component: resolve => require(['@/view/employee/employee_work.vue'], resolve)
      },

    ]
  },
  {
    path: '/photogroup',
    name: 'photogroup',
    meta: {
      icon: 'md-image',
      title: '图片库',
      hideInMenu: false,
      hideInBread: true,
      access: ["user"],
    },
    component: Main,
    children: [
      {
        path: '/photogroup',
        name: 'photogroup',
        meta: {
          icon: 'md-image',
          title: '图片库',
          access: ["user"]
        },
        component: resolve => require(['@/view/work/photogroup.vue'], resolve)
      },
      {
        path: 'photodetail/:id/:name',
        name: 'photodetail',
        meta: {
          icon: 'ios-book',
          hideInMenu: true,
          hideInBread: true,
          access: ["user"],
          title: route => `图片库-${route.params.name}`,
        },
        props: true,
        component: resolve => require(['@/view/work/photodetail.vue'], resolve)
      },
    ]
  },
  {
    path: '/area_saved_manager',
    name: 'area_saved_manager',
    meta: {
      icon: 'ios-stats',
      title: '评估报告',
      hideInMenu: false,
      hideInBread: true,
      access: ["areaadmin"],
    },
    component: Main,
    children: [
      {
        path: '/area_saved',
        name: 'area_saved',
        meta: {
          icon: 'ios-stats',
          title: '身体能力评估报告',
          access: ["areaadmin"]
        },
        component: resolve => require(['@/view/assessperson/area_saved.vue'], resolve)
      },

    ]
  },
  {
    path: '/db_area_saved',
    name: 'db_area_saved',
    meta: {
      icon: 'ios-stats',
      title: '低保核查报告',
      hideInMenu: false,
      hideInBread: true,
      access: ["areaadmin"],
    },
    component: Main,
    children: [

      {
        path: '/db_area_saved',
        name: 'db_area_saved',
        meta: {
          icon: 'ios-stats',
          title: '低保核查报告',
          access: ["areaadmin"]
        },
        component: resolve => require(['@/view/db/db_area_saved.vue'], resolve)
      },
      {
        path: '/db_info_saved/:id/:name',
        name: 'db_info_saved',
        component: Main,
        meta: {
          icon: 'ios-stats',
          title: route => `核查报告-${route.params.name}`,
          hideInMenu: true,
          hideInBread: true,
          access: ["areaadmin"]
        },
        props: true,
        component: resolve => require(['@/view/db/db_info_saved.vue'], resolve)
      },
    ]
  },
  {
    path: '/jz_area_saved',
    name: 'jz_area_saved',
    meta: {
      icon: 'ios-stats',
      title: '救助核查报告',
      hideInMenu: false,
      hideInBread: true,
      access: ["areaadmin"],
    },
    component: Main,
    children: [

      {
        path: '/jz_area_saved',
        name: 'jz_area_saved',
        meta: {
          icon: 'ios-stats',
          title: '救助核查报告',
          access: ["areaadmin"]
        },
        component: resolve => require(['@/view/jz/jz_area_saved.vue'], resolve)
      },
      {
        path: '/jz_info_saved/:id/:name',
        name: 'jz_info_saved',
        component: Main,
        meta: {
          icon: 'ios-stats',
          title: route => `特困核查报告-${route.params.name}`,
          hideInMenu: true,
          hideInBread: true,
          access: ["areaadmin"]
        },
        props: true,
        component: resolve => require(['@/view/jz/jz_info_saved.vue'], resolve)
      },
      {
        path: '/temp_jz_info_saved/:id/:name',
        name: 'temp_jz_info_saved',
        component: Main,
        meta: {
          icon: 'ios-stats',
          title: route => `临时核查报告-${route.params.name}`,
          hideInMenu: true,
          hideInBread: true,
          access: ["areaadmin"]
        },
        props: true,
        component: resolve => require(['@/view/jz/temp_jz_info_saved.vue'], resolve)
      },
    ]
  },
  {
    path: '/checkonwork',
    name: 'checkonwork',
    meta: {
      icon: 'md-people',
      title: '考勤管理',
      access: ["admin"]
    },
    component: Main,
    children: [
      {
        path: '/checkonwork',
        name: 'checkonwork',
        meta: {
          icon: 'md-people',
          title: '考勤管理',
          access: ["admin"]
        },
        component: resolve => require(['@/view/work/checkonwork.vue'], resolve)
      },
      {
        path: '/checkonwork_detail/:sdate/:edate/:id/:name',
        name: 'checkonwork_detail',
        component: Main,
        meta: {
          icon: 'md-people',
          title: route => `考勤详情-${route.params.name}`,
          hideInMenu: true,
          hideInBread: true,
          access: ["admin"]
        },
        props: true,
        component: resolve => require(['@/view/work/checkonwork_detail.vue'], resolve)
      },
    ]
  },
  {
    path: '/booklib',
    name: 'booklib',
    meta: {
      icon: 'ios-book',
      title: '政策学习',
      access: ["user"]
    },
    component: Main,
    children: [
      {
        path: '/wordmanager',
        name: 'wordmanager',
        meta: {
          icon: 'ios-book',
          title: '政策学习',
          access: ["user"]
        },
        component: resolve => require(['@/view/work/word_manager.vue'], resolve)
      },
      {
        path: 'word_detail/:id/:name',
        name: 'word_detail',
        meta: {
          icon: 'ios-book',
          hideInMenu: true,
          hideInBread: true,
          access: ["user"],
          title: route => `${route.params.name}`,
        },
        props: true,
        component: resolve => require(['@/view/work/word_detail.vue'], resolve)
      },
    ]
  },
  {
    path: '/opinion',
    name: 'opinion',
    meta: {
      icon: 'logo-octocat',
      title: '员工吐槽',
      access: ["admin"]
    },
    component: Main,
    children: [
      {
        path: '/opinion',
        name: 'opinion',
        meta: {
          icon: 'logo-octocat',
          title: '员工吐槽',
          access: ["admin"]
        },
        component: resolve => require(['@/view/work/opinion.vue'], resolve)
      },

    ]
  },
  {
    path: '/error_logger',
    name: 'error_logger',
    meta: {
      title: '系统日志',
      icon: 'ios-bug-outline',
      hideInBread: false,
      hideInMenu: false,
      access: ["superadmin"]
    },
    component: Main,
    children: [
      {
        path: 'error_logger_page',
        name: 'error_logger_page',
        meta: {
          icon: 'ios-bug',
          title: '页面错误日志',
          access: ["superadmin"]
        },
        component: resolve => require(['@/view/single-page/error-logger.vue'], resolve)
      },
      {
        path: 'api_error_logger_page',
        name: 'api_error_logger_page',
        meta: {
          icon: 'md-bug',
          title: '接口日志',
          access: ["superadmin"]
        },
        component: resolve => require(['@/view/single-page/api-error-logger.vue'], resolve)
      }
    ]
  },
  {
    path: '/401',
    name: 'error_401',
    meta: {
      hideInMenu: true
    },
    component: resolve => require(['@/view/error-page/401.vue'], resolve)
  },
  {
    path: '/500',
    name: 'error_500',
    meta: {
      hideInMenu: true
    },
    component: resolve => require(['@/view/error-page/500.vue'], resolve)
  },
  {
    path: '*',
    name: 'error_404',
    meta: {
      hideInMenu: true
    },
    component: resolve => require(['@/view/error-page/404.vue'], resolve)
  }
]
